fix(modal): fire ng-leave on close
fix(modal): fire ng-leave on close

- Have $animate execute class changes on window close

Closes #5556
Fixes #5399

benhalverson/bootstrap,byronigoe/bootstrap,fpipita/bootstrap,shootermv/bootstrap,292388900/bootstrap,wesleycho/bootstrap,angular-ui/bootstrap,Foxandxss/bootstrap,BookingBug/bootstrap,Servoy/bootstrap,Kpler/bootstrap,BookingBug/bootstrap,icfantv/bootstrap,icfantv/bootstrap,caoruiy/bootstrap,christor/bootstrap,RobJacobs/bootstrap,Foxandxss/bootstrap,christor/bootstrap,mabi/bootstrap,RobJacobs/bootstrap,Servoy/bootstrap,caoruiy/bootstrap,benhalverson/bootstrap,angular-ui/bootstrap,Kpler/bootstrap,vfiles/bootstrap,byronigoe/bootstrap,vfiles/bootstrap,wesleycho/bootstrap,benhalverson/bootstrap,looker/bootstrap,benhalverson/bootstrap,looker/bootstrap,292388900/bootstrap,fpipita/bootstrap,shootermv/bootstrap,mabi/bootstrap