Added a bit of safety against accessing files pending protection.