task: fix the dropped-mdi bug

Task is not Done if there's stuff on the mdi execute queue.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
task: remove some dead code

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>