Suicide is illegal for a reason. It is a symptom nearly all the time of an irrational person (whether caused by medical or emotional reasons) and can be dealt with by medicine, counseling or the passage of time.
I am surely not aware of all laws on the books but is suicide really illegal? And if it is who would they arrest and prosecute? Of course if the person failed they could be arrested but then they wouldn't be guilty of suicide would they?