Port the inactive community cleanup loop to twisted