If Twitter fails to make payments on its debt then Morgan Stanley will become the proud new owner of Twitter. It is similar in structure to a mortgage on a house.
Allowing so long for the deal to close may have been a mistake due to what happened in the market between when they agreed to terms and when the deal closed.