closes and joins process pool