Add a channel to know when the session ends
Add #cgo LDFLAGS