Move exit code to rprompt