Set $OnDialog to false. Required by sys_close