added exit button

Does the same as the escape key: closes the application.
If a command is running, it asks the user if the process
should be terminated or abort exit.