ensure closed connection in case of offline dongle