saving the failed log