Fixed a problem with connection resets.