Handled disconnection and reconnection for HTTP driver