diff --git a/pulse.go b/pulse.go
index <HASH>..<HASH> 100644
--- a/pulse.go
+++ b/pulse.go
@@ -372,8 +372,8 @@ func action(ctx *cli.Context) {
 					"keyringFile": keyringFile,
 				}).Fatal("can't open keyring path")
 			os.Exit(1)
-			defer file.Close()
 		}
+		file.Close()
 		log.Info("setting keyring file to: ", keyringFile)
 		c.SetKeyringFile(keyringFile)
 	}
Fix: Close keyring file passed in as we just set the path to file and not pass in the open file