fixed EventHandle in rpi code to propagate errors