add some debug for socket closing
When registering with host, remove duplicate HEARS, to prevent disconnections