add check for read error on initial connect