added exception handle for httplib.IncompleteRead