Generate a destruction method which clean's up and destroys all references on the instance