These tragic events with mentally ill pilots can only be stopped when their mental problems are recognised by collegues, doctors, company before they reach the state that they become lost souls.... It is not easy and maybe not possible in some cultures to express your concerns about a colleague but it can save lives.
Well, if the reports are correct, than this captain recognized his problem and self-reported it! And was then ordered to fly....
How sad this whole story is