TS/JPM: proper signal handling that ensures flushing of index on SIGINT or SIGTERM
TS/JPM: simplified and fixed SeqStoreSortingCollector