Revert "Fix crash on exit via Application singleton"

This reverts commit 23eccebf5be2b67fa72e33f4e22284ded99431cd.