I wouldn't worry too much about your contract.
It'll take a least year before the purchase even gets approved (it will be heavily investigated first because only having one GSM carrier could potentially cause legal issues with monopolization) and then I suspect it will take another year before they are really able to merge the two companies. So for all intents and purposes T-Mob will still operate as a standalone company/carrier for another couple of years.
Having the main competition reduced to 3 carriers does suck though. We're gonna be in the same situation here in the UK as T-Mobile and Orange are merging here. It's a shame that such a strong brand is gonna disappear, I've had T-Mobile branded phones since the Sidekick days.