Return shuts down the application.

Also changed the way the peers are initialized.
And changed logging to debug in some cases to suppress printing too many messages.