Fix segfault in service_t and custom name of threads.

* service_t first resets pointer to connection and then derefernces it.
* Threads created by service manager now have name "service-manager".