if you unlock your phone before you pay off you contract, your phone will be blacklisted and carrier restricted here in usa , and possibly europe and other places that adhere to the imei blacklist agreement. best to talk to att , and tell them what it is you are trying to achieve, most cases they will help , they dont want to lose customers.
That is completely false information posted above.