Handle MySQL Timeouts