added native window close action