Added missing shutdown code to FT