Extended "exit" command to provide reason while exiting, as well as parameter to allow restart of the program.