Added cleanup + parsing parameters to runCollector

Collectors likely need to clean up any connections they have running upon termination.

Also runCollector now takes in an options parser instead of an already parsed options, as that doesn't actually work.

Addresses #3