Fix errors in hooks not erroring the chip