Allow failures to be archived and patch Rails so that IP and agent are added to payload