close encryption session after decryption was finished

close encryption session after decryption was finished. This way we can detect if the admin enables the encryption again while we are logged in.

fix #7429