- nsChildren cleanup and improved error handling