public AdHocChannelFactoryAware OnClosed(Action<ChannelFactory> action) { onClosed += action; return this; }