Close handles and terminate processes
Close handles and terminate processes

Trying to fix the "resource exhausted" problem.

jeremy-w/tryidris,puffnfresh/tryidris,puffnfresh/tryidris,jeremy-w/tryidris,puffnfresh/tryidris,jeremy-w/tryidris