1. Don't leave the matrimonial home leaving the children behind as in such case in custody suit she would never get them back.
2. Her husband must not been watching her 24 x 7. So given an opportunity she can flee from her husband's home and take the children along.
3. Thereafter she can file a suit for divorce. Let her husband file a suit for custody in which she can easily retain the children with her.