func (*StopCallback) Call() error {
	log.Warningln("detected poison record, exit")
	os.Exit(1)
	log.Errorln("executed code after os.Exit")
	return nil
}
Call exists service with log
package base
import (
	"container/list"
	log "github.com/sirupsen/logrus"
	"os"
	"os/exec"
)
type PoisonCallback interface {
	Call() error
}
type StopCallback struct{}