Maybe go with the logger instead of printing the stacktrace?