method to catch dropped DB connections (as per mySQL lib readme)