Detect SIGINT and flush share queue to DB