Resource collection cleanup.