fix crashes if MQ unavailable
Merge branch 'master' of github.com:synrc/mqs