env: Adjust the load() method to return an error