Use shared_handler in HandshakeDetector