If you are preparing to stop a broker, Configuration Manager or User Name Server, you can stop the component's WebSphere® MQ queue manager at the same time.
You can specify a -q parameter on the mqsistop command to initiate a controlled shutdown of the queue manager for a WebSphere Message Broker component. If you are using a single queue manager to support more than one WebSphere Message Broker component (a single broker can also be defined on the same queue manager as a Configuration Manager, or the User Name Server, or both), specify the -q flag only on the final stop command, having stopped the other components first. The -q flag initiates a queue manager termination regardless of any other component currently using that queue manager.
mqsistop WBRK_BROKER -q
where:
WBRK_BROKER is the name of the component.
-q stops the WebSphere MQ queue manager associated with the component.
The command cannot complete until shutdown of the queue manager has completed.