Automatically close & restore running programs on Windows