Fix bug in do_mode

Doesn't try to restart non-running server