added hook for kill window, doesn't seem to work.