cleaning up log resource.