protected void HandleMap(object q, EventArgs eargs) {
object result;
Channel map_res = (Channel)q;
try {
result = map_res.Dequeue();
}
catch(Exception x) {
result = x;
}
_rpc.SendResult(map_res.State, result);
}
protected void HandleReduce(object q, EventArgs args) {