smarty3 cleanup