Messaging Gateway closes network connection prematurely when delivering messages.