cleans up log