Test fix for closing connections on mysql restart