related to #194 - solves a concurrency problem on encrypted whoosh caused by unnecessary writes on close callback.