Adds some logic for deleting Models and GLHandler.