Maryland is getting vicious toward the high-income residents fleeing to Florida and North Carolina. MD is now withholding 7.5% of the proceeds of a house sale when you move out of state. This is supposed to ensure people pay any capital gains tax owed on the house, but it is charged to everyone, even if you had to sell at a loss.
Next year when you file your taxes with MD as a part-year resident, hoping to be refunded for the tax on the capital gains you did not receive, MD Comptroller's office may audit your return. They certainly are in no hurry to refund your money. And 7.5% of the purchase price is probably a lot more than most people would ever owe in CG tax. Think of it - 7.5% of a $500,000 sale is $37,500!