func quit(cli *client.Client) {
	cli.Disconnect()
	cli.Terminate()
	exit(0)
}
quit quits this process.
package main
import "github.com/yosssi/gmq/mqtt/client"
const cmdNameQuit = "quit"
type commandQuit struct {
	cli *client.Client
}
func (cmd *commandQuit) run() error {
	quit(cmd.cli)
	return nil
}
func newCommandQuit(cli *client.Client) command {
	return &commandQuit{
		cli: cli,
	}
}