cleanup logging
add missing shutdown checks to chaining worker loop
fix bounded cache taking a writer lock on known keys when it only needs a reader lock