onClosed

open override fun onClosed(exitCode: Int?)

Records remote closure and closes the parser exactly once.