send terminate event on bye