Whenever "MySQL is gone" or other failure happen, catch them in the DB class and retry the connection a few times before giving up. @DeepDiver1975