Tweak out-of-memory vs low-memory behavior vs disk-full, do not die so quick

Will probably try a few GC cycles, and maybe survive if enough memory to do
the computation, but not enough disk to swap.