Handle out of memory errors.
Explicitly set processes=NULL so free passes.