free _env after spawn