close logger