Fixed deadlock when filtering excluded repositories causes sys.exit when downloading metadata