Destroy components on teardown.

Fixes #64.