Fixed bug where TaskProcessor was shutting down on exceptions.