Added error logging for exceptions

I also prefer the flexibility here because I'll almost certainly pipe this into a 3rd part error aggregator at some point.