fixed 907880 - improved error handling and reporting those errors to the error log