The gospel of Judas, which has no less weight than other musings on the subject, points out that Judas actions may have been part of the plan, overtly.  His suicide was depression based, like any other.  Whether this lost him the afterlife is only God's to know.