Notify delegate of imminent and post viewcontroller dismissal.