fix deregister-on-exit when client and service exist in same process by assigning parent process to client
break out sendResponse for custom handlers