How to release self-destructive thoughts and cultivate optimism