Protection for elevators and escalators