Handling cases where stat or reads fail