Implement destroy method

Implements #2 as well as destroying the component and removing references.