remove dialog on terminate event, not bye message