Surround shlep loop in try block