Import_from_xml.php DALException Fatal Error

Using "import_from_xml.php" script  to replace the existing content in a number of standard pages caused the following Fatal Error message for each page:

Fatal error: Uncaught exception 'DALException' with message: 'Connection with ID "db2" cannot be closed because it still exists in the stack.' in /var/www/squiz_matrix4/core/lib/DAL/DAL.inc(1459): dbClose('db2')
#1 /var/www/squiz_matrix4/scripts/import/import_from_xml.php(174): _disconnectFromMatrixDatabase()

The content in the standard pages was successfully changed.

 

Here is the action snippet from the .xml file used:

<action>
   <action_id>set_Content_Type_WYSIWYG_3363_html</action_id>
   <action_type>set_attribute_value</action_type>
   <asset>3363</asset>
   <attribute>html</attribute>
   <value><![CDATA[

(html code removed for brevity)

]]></value>
</action> 

What is the cause of this error?

Does it indicate any issues that might cause future problems for normal usage?

 

 

What action (if any) should we take as a result of these errors?

 

Thanks.