God disciplines the one he loves, and he disciplines the one he loves in order to make the one he loves more holy. If you are experiencing the discipline of the Lord, do not try to figure things out on your own - go to God in humble repentance and worship him.