logout method

Signed-off-by: Nader Hendawi <naderhen@gmail.com>