added connection.Linger(0) in RegisterService