add global death handler