Fix for #60: OS X: app shuts down when I click "CMD+W" to close a tab