Cleaning up logs.