Listener class for the file menu exit item