cleaned up exit code, beginning and end messages.