End Thead on Shell close