This class handles event for closing main program basically it ask user to whether they want to save the work or not