fix close err