We also need to catch OSError here.