Failure to protect

I feel like I need to leave my husband. He is physically, sexually, verbally abusive towards me. I'm taking steps to leave, including steps to a restraining order. We're in California.

Will I be charged with failure to protect, can I lose my kids?