Fixed MySQL disconnects erroring.

Thanks ace13!