Fixed logout issue

Fix #28
Signed-off-by: Sheik Hassan <solergiga@yahoo.com>