"For God has imprisoned everyone in disobedience so he could have mercy on everyone." Romans 11:32
I was reminded that everything God does is salvific. He never gives up on us. Everything he does is intended to win our hearts and minds to (eventually) love and follow him. This is so different from our human nature that sometimes I need to be reminded. When I read a passage that says God punishes disobedience, etc., I tend to envision something harsh or angry going on because that's my human experience. But with God this is not so.
Whenever God corrects or disciplines us, it is always for our good and it is applied with love, gentleness and patience. (i.e. ... Love is patient, love is kind...etc.)