Close stream.
diff --git a/linux/system/doc.sls b/linux/system/doc.sls
index 7370e0c..55480ea 100644
--- a/linux/system/doc.sls
+++ b/linux/system/doc.sls
@@ -21,7 +21,7 @@
   pkg.installed:
   - name: python-yaml 
   cmd.wait:
-  - name: python -c "import yaml; stream = file('/etc/salt/grains.d/sphinx', 'r'); yaml.load(stream)"
+  - name: python -c "import yaml; stream = file('/etc/salt/grains.d/sphinx', 'r'); yaml.load(stream); stream.close()"
   - require:
     - pkg: linux_system_doc_validity_check
   - watch: