fixed sessionkey when recording failed jobs