Log unhandled exceptions during task execution

Partially implements blueprint improve-engine-logging
Change-Id: I65196d3216d1c35b7f1d53c1c1e0f0421ecc7c68
Merge "Log unhandled exceptions during task execution"