Don't throw away an initial error when detecting the handshake.