Avoid using msg_* when running out of memory.