void set_close_callback(function(void|mixed:int) close)
Install a function to be called when the connection is closed, either normally or due to an error (use errno to retrieve it).