fixing 'mysql server gone away' and mq reconnect errors