code: func Checked(target func() error, logging bool) {
  	defer func() {
  		// check if there was a panic
  		if x := recover(); x != nil {
  			if logging {
  				log.Printf("run time panic: %v", x)
  			}
  			// close with an error
  			c.closeErr()
  		}
  	}()
  	if err := target(); err != nil {
  		if logging {
  			log.Println("error:", err)
  		}
  		// close with an error
  		c.closeErr()
  	}
  }
docs: // Checked runs the target function and checks for panics and errors it may yield. In case of panic or error, closer
  // will terminate the app with an error code, but either case it will call all the bound callbacks beforehand.
  // One can use this instead of `defer` if you need to care about errors and panics that always may happen.
  // This function optionally can emit log messages via standard `log` package.