Preserve a few of the failed nodes for investigation

The most recent <KEEP_FAILED> nodes will be preserved as long as they
are not older than <KEEP_FAILED_TIMEOUT>