Added destroyLogger method
Improved destroyLogger method