add mods to provide logging and better handling of completed tasks
force swallowing of large blocks, i.e. blocks larger than the window size. Previously, a block larger than the window size would cause the agent to get stuck, forever looping and never processing the queue