Can a director close his company to avoid legal action from customer?

Can a director close and remove his company from companies before action of breach of contract