Cleanup in logging