Added improved error handling and reporting