Improved error handling and notifications