The residence shall establish a written policy for the refund of unused advance payments or security deposits in the event of termination of a residential services agreement or death of a resident which shall include the terms and conditions under which the advance payment money or security deposit may be withheld by the residence. Advance payments other than security deposits shall be subject to the terms and conditions contained in N.H. Rev. Stat. § 161-J:4, II. Security deposits shall be subject to the terms and conditions contained in N.H. Rev. Stat. § 540-A:6 and N.H. Rev. Stat. § 540-A:7.