Dispose log when not in use