Connected our window close actions.