Handle possibly more IO errors gracefully