fix closeConn for update method