Clean up logger in at_exit