Print stack trace on exception in callback handler