Change the way of verifying initial connection. Use message id as identifier.
Design the register connection pattern.