Exceptions can now be passed in to the failure logging function.