Reset effects on window close