Make sure to always call delegate methods rather than dismissing directly without.