change close to not use timeout