Added catch for network error.