do we want to clean up the stream ? or does the ```KeyStore``` class take care of it ?