Hide IO "Stream closed" exceptions