Handle disconnects for MySQL read replicas with connection pooling

Fixes #2354