Purges Message and HwCmd queues on stop
Make channel2 (for Message queue) global so that the webserver can purge the queue on stop