check stack so that exception isn't swallowed