code: func (a *Astilectron) HandleSignals() {
  	ch := make(chan os.Signal, 1)
  	signal.Notify(ch, syscall.SIGABRT, syscall.SIGINT, syscall.SIGQUIT, syscall.SIGTERM)
  	go func() {
  		for sig := range ch {
  			astilog.Debugf("Received signal %s", sig)
  			a.Stop()
  		}
  	}()
  }
docs: // HandleSignals handles signals