FEATURE: Add session dirty checking

Write session on finalization to eliminate race after finalize before completion with another request using session.
UPGRADE: ssl pak.