Tired people have trouble holding it together: both you and your kids are more likely to "lose it" when sleep deprived. Don't try to do any serious parenting when you're in that state or when your child is in that state. Wait until tomorrow and if the problem still exists, take care of it then.