void set_output_closed_callback(void|function(mixed:mixed) close_cb, void|mixed id)
Set the callback function to be called when one of the outputs has been closed from the other side.