Added close button function

Close button under File tab now closes out of the program.