Add InterruptedException to syncBranches() method signature.