removed warning when closing a surf-window.