When using client, should be able to register callback when all tasks are done