perf: Add DIE_IF() macro for error checking