tryfinally sample