Implement error tracking and messaging