Use the logger in stead of printing a stacktrace