You can get off at the next stop or even ring the intercom to alert the building superintendent. For larger buildings, the building superintendent will announce the procedure through the intercom. Many elevators will stop at the nearest floor and keep the doors open. Quickly leave the elevator and do not use one again. This is also true in case of fire.
Escalators are actually very energy efficient.
But for escalators that must be available round the clock, such as in airports, sensor beams at the entrance and exit can detect a passenger and automatically start and stop itself. Hollywood is an expert in glamorizing elevator falls, but actually that happening is close to winning a lottery 10 times in a row. At least 3 steel cables which are perfectly capable of sustaining 10 times the load are used. In a car, the seat behind the driver is considered the best seat. They are the first to enter and leave the cab unless there are many customers or when the entrance way is narrow, the lower ranked can get in first and hold the door open.