added exit code on prompt