switch postmortem to onfail
Set onfail as a reserved keyword