public function _closeSession($session)
{
unset($session);
}
All _closeSession does is unsetting a local variable.
To achieve desired effect, $session would have to be passed by reference and value overwritten instead of unsetting.
Update: _backupSession is fine.