server bugfix, close opened sessions in persisence