onClose

fun onClose(block: (SimpleGUI) -> Unit): SimpleGUI