The #8 Elevator stopped within 12 inches of the top landing with one passenger on the car. The car showed overspeed fault. The rope gripper set and locked the car out on fault. The passenger was stuck for 5 minutes. The car was reset and tested. The agencies were notified. The elevator returned to service at 3:45am