Jet engines are much more reliable than the radial piston engines used in the past. The design of the planes make some allowances for the occasional failure. Features like pylons designed to break away if there's too much vibration and positioning the engine where it protrudes in front of the wing to reduce the chance a disintegrating compressor disk will puncture the fuel tank in the wing.