Implement exit command.