error handling process is optimized for production environment