Reset all variables after calculating and handle exception because operand stack is empty