make purge-unreferenced work whith huge amounts of unreferenced nodes
fix purge unreferenced
more graceful scheduling failures