Fix closeability of encrypted stream.  Resolves file handle leak.