Updated logout manager snippet