Added `logout` method.