Instead of exiting on memory failure, log a warning then return NULL
to signify an error to the caller.