Fixed window cloasing event