fix close io object