Moved cleanup code outside the loop so the cleanup code and loop are cleaner
Merge pull request #1 from fracmak/feature/simpler_cleanup

Moving Process Cleanup Code