Handle "out of memory" situations.