added destroyer class to handle singleton objects to avoid memory leaks