Thanks for the prompt reply guys but I found the information on the I-864A Part 6 section E which states:
I understand that, if I am related to the sponsored immigrant or the sponsor by marriage, the termination of the marriage (by divorce, dissolution, annulment, or other legal process) will not relieve me of my obligations under this Form I-864A.