Detect when the server should be running but isn't, and try to restart it

See #51