Ensuring the user always has a chance to see the stacktrace by logging it instead of printing it.