Registered to more windows close events.