Creating a destructor for all models.