Log errors and their stack traces

Seeing stack traces is very helpful for debugging.