Avoid printing exception stacktrace