#353 Fixed crash when disconnected from stomp.
#360 addressing issue of PM2 kill