added exit code to RPROMPT