fix(modal): destroy modal scope after animation end

Fixes #1643