package server func exit(r *request) { r.c.s.Stop() } func init() { newCmd("exit", exit, "") }