If the application is instantiated, it immediatelly un-registers itself.
When the application instance is closed, it increments flap-count
and if active flag is set, re-registers the application implementation as a singleton.
If the application is instantiated, it immediatelly un-registers itself.
When the application instance is closed, it increments flap-count
and if active flag is set, re-registers the application implementation as a singleton.