Added handling for ConnectionReset