The warning comes from the underlying remoting codebase used by messaging and is harmless. It is caused when the messaging client stops without cleanly closing its resources, this is the server letting you know that it has recognised this.

That code looks like it is from the helloworld quickstart and should be fine, assuming it completes normally. If you were to remove the following line then you would also see this issue in that quickstart.