Added a cancel button

When quitting the application, the dialog box now has a cancel button so users can abort the action without minimizing to tray.