automatic recovery from connection resets