change back resolution on window close