setOnClose

fun setOnClose(onClose: () -> Unit)

Replaces the handler invoked when the user requests to close the window (wired to the "quit" menu entry).