printing stack trace of underlying thread error