Subform: On Delete successful

Subform: On Delete successful

I have a subform and it is very important to know when rows have been deleted from the subform.
As a result, I have actions on the  On Delete Row in my script

There is a bug when user click the "X" to delete a row from the subform but do not click update on the main form because they change their minds. The actions on the "On Delete Row" still  get performed even though the row was not successfully deleted. As a result, I am getting unnecessary notifications. 

If the row does not successfully get deleted, than I do not want the "On Delete Row" actions to occur. 

Can you please fix the bug?