Kill algorithm when done