Log stacktrace on exceptions.