Buddhism doesn't categorically outlaw suicide but it's against violent or angry suicide and it definitely proscribes suicide as a way out. The bad karma you were trying to escape, plus possibly more, will be waiting for you on the other side. The self-immolating monk, Thích Quảng Đức, might turn out OK if he had compassionate intentions; but in general, suicide is still very bad.