handle an OSError here