cmd/guru: Close before Remove a file

Change-Id: Ia12ff7a0f6898f8d140565d255793904ce8585c4
Reviewed-on: https://go-review.googlesource.com/38754
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
diff --git a/cmd/guru/guru_test.go b/cmd/guru/guru_test.go
index 4026136..3432255 100644
--- a/cmd/guru/guru_test.go
+++ b/cmd/guru/guru_test.go
@@ -269,8 +269,8 @@
 			t.Errorf("Create(%s) failed: %s", got, err)
 			continue
 		}
-		defer gotfh.Close()
 		defer os.Remove(got)
+		defer gotfh.Close()
 
 		// Run the guru on each query, redirecting its output
 		// and error (if any) to the foo.got file.