Run on scope exit class