wrap OSError and IOError

fixes #1
prep for next rel