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