Scope is $destroied when modal is deactivated.