Fix MySQL-only issue with connections stuck open(?)