Implement logout menu option.