PCT-562 Updated detection of MySQL connnection lost