Added an option to disposse the collector after a successful run