vo_corevideo: change window-closing handling