Fix remote process ping and reconnect