Fix possible segfault.

Though we still need to add logic for re-connecting to the meta server.