Implement quit and version commands.