A man with a gun snapped into a machine.