destructor to clean logger handlers