Fix #498 reconnect deployment tool