Money from critical illness insurance , given as a lump-sum amount when someone is diagnosed with a serious illness such as a heart attack , can be used at the policyholder 's discretion and provide needed protection .