am 1bf2b873: Defer detach until animations are complete.

* commit '1bf2b873470d2ba8a4ac218da73516cc2b20aa76':
  Defer detach until animations are complete.