Enable reconnect to broker
Terminate JSON-RPC connection in time to prevent port blocking