open fun closeHandler(handler: Handler<Void>): NetSocket
Set a handler that will be called when the NetSocket is closed
handler - the handler
handler
Return a reference to this, so the API can be used fluently