Safely shutdown TRK during windows shutdown