Merge changes I01e81b9c,I532c2d74

* changes:
  Add a listener when task snapshots change
  When app dies, destroy snapshot