remove window when restart