onClose

protected abstract fun onClose(code: Int, reason: String)