Move model releasing action to AppDelegate's dealloc method.