Fixed erreoneous binding set to window close event listener

Suggested reviewer @Standard8