Ensure session is manually closed in keep_session example so test does not hang on Postgres.