Tws ensure teardown is called

Fixes #20