Put them some place safe like a crib or play pen and take a time out yourself. Go into the bathroom or your own room and just take some time to reset and deal with your emotions. As long as you know they are safe it is 100% okay to take some time to deal with your own emotions. Them seeing that mom walks away when she is angry and comes back cool headed shows them healthy coping skills too!