hornetq/hornetq — pull request #898 by FranciscoBorges (2013-03-04 18:37:49+00:00)
Title: First close all sessions, THEN start waiting for completion.

Remove the setContext call, from server.stop() as the methods inside
ServerSession are already handling the context switching.