Another try catch added for an error