Trying to stop closing windows on Mac