NServiceBus.FunctionEndpoint.Process return NullReferenceException

fix by answer in With NSB 8 I'm getting ServiceBusException: Cannot allocate more handles. The maximum number of handles is 255 - #4 by danielmarbach