raising exception if the result of checking stack status is false, indicating some sort of failed state