Framework: clean up resources after task calls Exit()

... It's you that wrote it..

Anyway, the `epochStop` is used by watch. So it should be this way.