update pipeline to call teardown of output workers when :workers > 1

Fixes #2180