It looks like that was a near disaster… thwarted by a watchful cat owner.