Destroy component if it's not needed