The other guy was about to go out of the elevator but apparently the elevator won't stop when it detects the doors are being blocked. It quickly shut close even if the guy was trying to go out. Good thing he was able to go back inside the elevator or else he'll get decapitated or killed.