add network error handle

fixes #1892