If sync fails, we now just throw an exection.