Restore "application destroyed" step [merge]

* was removed in 5fa8baf6c1781c0e1553d5c424688f461773710a
* danmcp removed other one in 22998a94a3eebc54f0c28da4cfee72796781b305

Restoring one of them so that runtime extended passes