Should emit `end` event for running tasks

Resolved #18