Making OnStart and OnQuit functions private; only IWindow component runs them.