Handle IOError in __del__. PEP8
Merge pull request #1 from rail/cleanup

Handle IOError in __del__. PEP8