force use of getRegistry() in service main, to prevent errors when not specifing host or port; in the same class: priting some exceptions' stack traces