Why don't you catch OSError ?