Added desktop notifications and proper error handling