Made it so app closes when you close the window