Code for exiting on startup is now in PeerLibrary.

Exiting on startup is used in tests and building images. It is used so that you can run PeerLibrary to installs all dependencies, but then exit.