add cleanup on sigint; use instanced read/write locks in shardedbrick