Update main try block