At the topmost landing of a stairwell, it is common for the handrail to turn ninety degrees and form the barrier that prevents someone from falling off the stair landing, but this is not acceptable if no extension is provided.
Per the 2010 ADA Standards, Section 505.10.2 at the top flight of a stair, the handrail shall extend horizontally above the landing for a distance of 12” minimum horizontally beginning at the last riser's nosing.
Per the 2010 ADA Standards, Section 505.10.3 at the bottom flight of a stair, the handrail shall extend at the slope of the stair flight for a horizontal distance equal to one tread depth beyond the bottom tread nosing.
Once the horizontal distance of the extension is met at both the top and bottom landings, the extensions must then return to a wall, guard, or landing surface.
The requirement for handrail extensions applies to all stairs no matter where they are in the building, and regardless if the stairwell is functioning as an accessible means of egress containing areas of rescue assistance.