Prevent creation of new environment before the previous one is done, added extra logging