Fixes to windows tidy
Set all inactive before tidy
Fixed /close command