data event still gets fired right before exit event