try catching ProtocolError