remove throw declaration of desctructor and replaced it with cerr printing