Adds a destroyAll function to destroy all instances.