Can we log this properly instead of just printing the stack trace to stderr?