Freeze environment after we run a script