closed

val closed: (Throwable?) -> Unit

This callback is called after close. It either contains an error or null, representing a successful close.