Fixed read_or_die() to timeout.