Husband wanted to lock toddler in closet

I’m literally in shock right now. So my husband is usually sweet but can definitely be rough. Our toddler woke up in the middle of the night and was super cranky. I rocked our toddler and made a bottle for him. He is pretty easy even my mom said he’s a well behaved toddler. He usually sleeps amazing so night like this are NOT COMMON. My husband was ok at first and comforting. I tried putting him to bed and then he did. After abt and hour and a half my husband is pissed. He’s super mad and calling him names and told him he’s gonna put him outside. I took him and tried putting him to bed again. After some more time my husband took him. I thought he was gonna try to comfort him but NO he set him in the closet and was abt to turn off the lights and close the door. I’m not violent but I yanked my husband by his shirt so hard. I yanked him out the way grabbed our toddler and yelled at him. Now I’m in shock and was sobbing because this is traumatic. Now I’m scared to leave my toddler with my husband at all. I’m seriously worried now. I’ve never seen him like this. Our toddler was a good baby and now toddler in the night. On the hard nights I was almost always with him. Today I felt sick all day so I was wanting husbands help. Now after seeing him like this idk what to do. I have never been this mad. I wanna call my mom in law and complain. I know she would be angry because she’s gotten onto him abt the smallest stuff he’s said abt parenting. What would you do in this situation?