Extra error handling to deal with an unavailable MySQL instance