Raises an exception when the environmental variable is empty, and its unable to *write* to the file. Rather than if its empty.