God torments unbelievers who hardened themselves. And He does it by sending demons to remind unbelievers of their spiritual hopelessness and to bring their souls to ruin.