Hi,
The most likely reason your Client gets disconnected when it sends a PUBLISH frame is that it is not authorized to publish. (Check how you have set up authorization).
You can trace the ClientId like this on the broker: vmq-admin trace client client-id=yourclient
This will show you whether the auth_on_publish hook rejects your PUBLISH frame.
I hope this helps,
André