Fixes ssue #56 "mymysql driver doesn't recover from 'broken pipe'"