Modify MaxRetriesException to return the last underlying exception.