Added cleanup parameter to runCollector

Collectors likely need to clean up any connections they have running upon termination.