Agreed, but at the time ( 20 odd years ago, it was the only thing that worked.
Having not slept for 2 months, my GP at the time offered me a choice.
Get sectioned or take temazapam.
So, Temazapam it was. Along with Diazapam when required.
These days thankfully, its just the Sertraline.