Making inuse a volatile boolean instead of an AtomicBoolean.