Swift main logs throwables.

We are exiting anyway, so it does not matter to distinguish exceptions and throwables.
Terminating the loop on server exit.
When saving the config, use a separate config file name.