Record job exit code and site name in the case of an exception being thrown.