Detecting "try" finished state by inspecting the top of the stack