add try catch and close #62