r# cleanup