Added self cleaning to Gallifrey backend