This is why Lock-Out Tag-Out (LOTO) is so important.
Protects yourself protect others. Never go into or work on a machine unless it cannot be energized or stops installed.
This happens alot in manufacturing esp when people get lazy and don't follow procedures or management doesnt enforce/train/make it possible.