The incident clearly shows that companies should not record such assignments at the last instant. Many companies consciously place all their IP assets, such as patents, trademarks and domain names, in separate IP Holdings. These IP holding companies then license the right to use the trademark to the operating company.
So don’t automatically register your IP in name of the operating entity. If part of the goodwill should be secured, ensure that it is held somewhere where it cannot be touched and do so in a timely and correct manner.