Save on close feature #473 added

Added two message boxes to handle the discard/save and abort/wait features.  Also added an "Exit" menu item to the "File" menu.  Tested and all appears to work as it should.