FIXBUG 829: expect the appropriate exception for ProtocolError