cecf22e035
The previous changes to the disposer registration changes introduced a weird problem exposed in the Gradle (test?) environment, that caused a performance regression - it seems that keep alive system property in that setting was cleared at the time the disposer was called, causing app env disposal when keeping it alive was expected. This fix captures property value at the moment of disposer registration, making it similar in that respect to the previous variant and avoiding the performance degradation. #KT-56992 fixed