the loop is now an own process, so the ENV listener can be stopped with
env:stop(EnvID).