Adding a try catch because sometimes the proxy fails