Repository now throws Exception when a process fails