Editor now asks for confirmation before closing