Update try catch block for node