Note now with the new commits this issue should be fixed, I'm not sure if you think a failsafe "if return_code is None; return_code = -1" is necessary, but basically when the remote_ssh method broke with an exception, it didnt mark the job as failed (now fixed)