print stack trace on check exception