Fix RuleFrame close operation