Yes, you close a company with an overdrawn directors loan account. In a close company, that is one with fewer than five shareholders and providing the director in question is also a shareholder, an overdrawn director's loan account can be treated as a distribution of profits and written off.