Exit with an error code if awestruct fails