Added try catch block for url call out