Remove debug gathering from teardown (#1151)

See #1151 for details.