What do you want?
If you can stop, then stop.
Smoking cessation may help some with making treatments easier, but will do little or nothing to affect the course of the disease. Some esophageal cancers do get cured, and stopping smoking reduces your risk for many other things, making the life that was saved more enjoyable. A dying person should be spared the unpleasantness of trying to quit.