Fixed crash at end of run related to --device parameter fix
After introducing the --device fix, the thread executor lambda did not have consistent return types any more. This lead to the compiler to not properly call the destructor for stack allocated objects, which crashed the Allen at the end of a run.