modified PieceProtocol to deal with potential deadlock