Added command handler for logging out