Exit the import function if the environment does not exist