Punishment is a blessing
Whenever paramAtma gives punishment, if one still thinks of it with devotion as a blessing (to improve) then only good accrues. There too, if one were to hate paramAtma, the same punishment leads to andhantamas (Eternal darkness).