Return robot return code to aid scripting