Add stacktrace log on exception.