public function logout()
{
foreach ($this->locks as $path => $lock) {
if ($lock->isSessionScoped() && $lock->isLockOwningSession()) {
try {
$this->unlock($path);
// will tell the lock its no longer live
} catch (\Exception $e) {
// ignore exceptions here, we don't care too much. would be nice to log though
}
}
}
}