Remove redundant prompt line copy
Add exit code to the prompt