Detect node deletion and exit.

Issue DE106
* Use OpenCenterEndpoint.whoami()
* Restructure registration.