use lodash to clone encoders for teardown