Cleanup taskprocessor on exit.