Added IncompleteRead exception handling.