do_move_pid_main: don't break out of while loop on error; return error after