Close cleanly when trying to read stats over a closed pipe

Can we decapsulate in getStats please.