not sure we should consider when an exception occurs but the streams are not closed.