Arc cleanup code