Adding destroy method to clean up all references.