Window close button working.