RestartableHttpClient makes reconnections impossible due to the underlying connectionManager being shutdown. This is a hack to recreate the connectionManager when the previous one is terminated.