captureException success callback?

If my angular web app gets a 401 http response it is captured and sent and then user is sent to sign in with:

Sentry.captureException(error);
window.location.href = environment.signInUrl;

The issue is that the sentry POST gets cancelled or never goes out because of the “window.local.href.” Is it possible to know when captureException was successful?