do_move_pid_main: don't break out of while loop on error; return error after
Merge pull request #16 from CameronNemo/master

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