Fix issue with monitor() never exiting
Fix issue with monitor() never exiting

The monitor() loop never seemed to correctly detect the ENDED status
using a bash regex test.

numerophi/MQrepository,dnwe/mq-docker,alanmpitts/mq-docker,selamanse/mq-docker,dnwe/mq-docker,jwende/mq-docker,davidkarlsen/mq-docker