do_run_single_threaded
err = do_run_single_threaded(session, threads, &target, false);
err = do_run_single_threaded(session, threads, &target, true);