Fixed bug that exits without saving

Bug occurs when the user has clicked exit on the program, then try's to
perform a Save As option. If the user clicks cancel in the save dialog,
the program will exit without saving. Fixed so that the program does not
exit.