Reduce duplicate code.
Bugfix: use the mirrors to obtain the old tasks.

The main variables containing tasks were cleared a few lines above to
avoid new tasks from being registered.
Callback.call now also allows other tasks to run.
Some exceptions do not have exc_info available.