All the templates work again
Fixed __del__ to not crash at interpreter exit