finished DOM tree error handle