Make sure you use a different client id for each client that connects to the broker. When you reuse the client ID the broker things that the same client is trying to reconnect and closes down any connections it already has open with that client id. Note that the client id is not the same as username which is used for authentication. The default client id is “openhab” I believe for the mqtt binding.