fix MySql disconnection issues on timeout

If timeout detected, attempt to reconnect before returned a failed
operation