Fixed mouse click passed down to map after closing a window.