Added exception handling for httplib.IncompleteRead