Suicide violates the 6th commandment, and thus is a mortal sin, one that is irremediable as death accompanies it, meaning the miserable man who commits it dies in the state of mortal sin. Because mortal sin is an insult offered to an infinite God, the punishment for it is justly infinite.
>It is altogether unlawful to kill oneself, for three reasons. First, because everything naturally loves itself, the result being that everything naturally keeps itself in being, and resists corruptions so far as it can. Wherefore suicide is contrary to the inclination of nature, and to charity whereby every man should love himself. Hence suicide is always a mortal sin, as being contrary to the natural law and to charity. Secondly, because every part, as such, belongs to the whole. Now every man is part of the community, and so, as such, he belongs to the community. Hence by killing himself he injures the community, as the Philosopher declares (Ethic. v, 11). Thirdly, because life is God's gift to man, and is subject to His power, Who kills and makes to live. Hence whoever takes his own life, sins against God, even as he who kills another's slave, sins against that slave's master, and as he who usurps to himself judgment of a matter not entrusted to him. For it belongs to God alone to pronounce sentence of death and life, according to Deuteronomy 32:39, "I will kill and I will make to live."