Fixed error handling on connection timeouts and TCP RST rest packets.