add sig handlers for cleaning up index after it is created