Stopping smoking is essential to improve the chances of survival from lung infections.