Maybe we're not closing the stream properly