openssl open and seal cleanup