This appears to do more than just get, so the method name could reflect that it can remove the task/handle as well. In this case I would prefer not to have the boolean, and instead just make this something like `getHandleAndRemoveIfFinished(String taskId)` and use the plain get method when no removal is desired, or make a separate `remove` or `removeIfFinished` method.

Superficially, it looks like this is only ever called with `false` at the moment, so maybe it isn't required at all.