Harden failure signal handler in the face of memory corruptions