finalizer close session then log