Documenting the correct 'end of trial' flow.