Thanks for your question.
This medication should not be used for a long term and also it is not the recommended medication for insomnia. Sedation is only a side effect of this medication. It may also cause short-term drowsiness or confusion or memory impairment.
Yes you need to discontinue this medication in consultation with your doctor. On discontinuation you are likely to regain any memory impairment due to the medication since this is mostly short term.
Also there will be no withdrawal effects on giving up this medication but the symptom such as insomnia is likely to return.
Therefore consult your doctor about melatonin which may be taken for insomnia in the elderly. Also a good sleep hygiene along with exercise and mindfulness meditation is beneficial.
Please rate the answer with a positive rating.