Properly close the process pool after use.