OSError instead of IOError

#1897