window.console may not be available. We've used this async throw pattern in other places as well.