Added a try block for error-prone code.