modify D3Ddemo10 for more debug on exit error