testing capturing winid change event so when window is destroyed it will add set putty's parent to new winid