Added note on teardown in debug mode.  Fixes #661