break out of read loop