Add a 'quit' parameter to 'close' event cb

On OSX, when user hit 'Cmd-Q', the close event is
sent with a 'quit' parameter to distinguish with
other cases for closing window

Fix #430