fix networking error on logout

fixes https://github.com/bitpay/copay/issues/790