He killed himself, that is the only logical explanation. How did Lord second take command? Well after Hashirama defeated and thought that he killed Madara most Uchihas were uneasy about the situation so hashi committed suicide in order to preserve peace.