Add WebException handling and error message.