Implement 'logout' command