Removed unneeded imports
Changed default close operation to exit