reconnect mysql on "MYSQL has gone away"