add index stall detection to prevent infinite reading on stopped streams