How can I make frame closing by clicking with mouse on button 'x' in upper right corner of window?