[OSJC-53] fixing issue with environment variable destroy