Whenever the proceeds of or payments under a life or accident and sickness insurance policy or annuity contract become payable in accordance with the terms of the policy or contract or the exercise of any right or privilege under the policy or contract and the insurer makes payment of the proceeds or payments in accordance with the terms of the policy or contract or in accordance with any written assignment of the policy or contract, the person then designated in the policy or contract or by the assignment as being entitled to the proceeds or payments, if legally competent, shall be entitled to receive the proceeds or payments and to give full acquittance for the proceeds or payments and the payments shall fully discharge the insurer from all claims under the policy or contract unless, before payment is made, the insurer has received at its home office written notice by or on behalf of some other person that the other person claims to be entitled to the payment or some interest in the policy or contract.