Elon Musk says he is terminating his deal to buy Twitter

The social media company's board says it will see him in court.