prevent app from sticking around after window is closed on mac