Added ``logout`` method.