Added try..catch inside the proxy