Log full error when task runner throws exception

This seems to be happening pretty often on our Jenkins build machines, so
it would be nice to have the full stacktrace and details to debug.