Protect against ProtocolError.