Error recovery fix: There were double ab.close() when sending back task which has been cancelled, causing assertion on socket counting.
glm2: updated asserts and debug prints.