Print the stacktrace on agent errors.