Fix for issue #610

The rules model was deleted before the rules were deleted from
triggerManager in RuleEngine.java. Switch notfylisteners and remove model.