Added handling close window key event on Mac OS X (Command + Q)