The research suggests, psychaedelics: Psychedelics in Palliative Care. These don't just benefit the terminally ill person taking them, but those around them. It is thought by inducing neuroplasticity, they allow people to reframe what they are going through, during a traumatic and intense time.
The end of a life is a last chance to settle feuds & dischords. This has been a major concern cross-culturally across the eras, & speaks to concern with leaving a legacy of unfinished business. I'd say this is the top priority, healing rifts, and also unfinished projects or unrealised potential (that there is time for). These are associated with the restless dead (very appropriate for Halloween). We should aim to die having made our peace.
Wanting to go out in a blaze of glory Gran Torino style, seeking that, rather than finding it necessary, doesn't seem healthy to me. Suicide bombers presumably think they are doing good, but things that require violence rather than the law, generally just lead to more violence.
Leaving a lasting impact, and being remembered well also, is something there are rarely shortcuts to, or someone else would likely have already taken them. Discussed here: What are some philosophical works that explore constructing meaning in life from an agnostic or atheist view?