check properly for window
close down everything on remove
full build dir + defensive