Use compareAndExchange() to set closeFuture