fix OSError handling
Merge pull request #69 from ros/oserror

fix OSError handling