added support for retiring services and unregistering applications manually