Currently, Allen will hang indefinitely on exit if any of the worker threads are unused or if the last slice processed by any worker thread resulted in a slice split. This MR contains just the commits that fix these bugs.
FYI @ahennequ @cagapopo