Which exception does TarjanTree.new exactly throw? If possible, only rescue from more specific exceptions.