diff --git a/npm_scripts/release.js b/npm_scripts/release.js
index <HASH>..<HASH> 100644
--- a/npm_scripts/release.js
+++ b/npm_scripts/release.js
@@ -67,6 +67,6 @@ stdin.question(`Next version (current is ${currentVersion})? `, (nextVersion) =>
   // Go back from whence you came
   exec(`git checkout ${branchName}`);
 
-});
+  stdin.close();
 
-stdin.close();
+});
chore: Fix closing of stdin.