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

See #51
Merge pull request #53 from Impromptu/detect-prompt-failure

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