Fixed a bug: When window was closed from window manager e.g. X-button,