{"action":"created","issue":{"url":"https://api.github.com/repos/nodegit/nodegit/issues/920","repository_url":"https://api.github.com/repos/nodegit/nodegit","labels_url":"https://api.github.com/repos/nodegit/nodegit/issues/920/labels{/name}","comments_url":"https://api.github.com/repos/nodegit/nodegit/issues/920/comments","events_url":"https://api.github.com/repos/nodegit/nodegit/issues/920/events","html_url":"https://github.com/nodegit/nodegit/issues/920","id":136178691,"number":920,"title":"Nodegit operations prevent process from exiting automatically.","user":{"login":"bpeabody","id":720785,"avatar_url":"https://avatars.githubusercontent.com/u/720785?v=3","gravatar_id":"","url":"https://api.github.com/users/bpeabody","html_url":"https://github.com/bpeabody","followers_url":"https://api.github.com/users/bpeabody/followers","following_url":"https://api.github.com/users/bpeabody/following{/other_user}","gists_url":"https://api.github.com/users/bpeabody/gists{/gist_id}","starred_url":"https://api.github.com/users/bpeabody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bpeabody/subscriptions","organizations_url":"https://api.github.com/users/bpeabody/orgs","repos_url":"https://api.github.com/users/bpeabody/repos","events_url":"https://api.github.com/users/bpeabody/events{/privacy}","received_events_url":"https://api.github.com/users/bpeabody/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodegit/nodegit/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/nodegit/nodegit/labels/CPP","name":"CPP","color":"5c3434"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-24T20:32:49Z","updated_at":"2016-03-10T20:50:57Z","closed_at":null,"body":"I'm finding that when I use nodegit, I have to explicitly call `process.exit()` to get my process to exit. I apologize in advance if I am missing something fundamental or simple.\r\n\r\nThe sample program below never exits for me (I put the call to `.free()` in for good measure):\r\n\r\n    const NodeGit = require(\"nodegit\");\r\n\r\n    NodeGit.Clone(\"https://github.com/nodegit/nodegit.git\", \"no-progress\")\r\n    .done(function (repo) {\r\n        repo.free();\r\n        console.log(\"I'm done\");\r\n    });\r\n"},"comment":{"url":"https://api.github.com/repos/nodegit/nodegit/issues/comments/195041465","html_url":"https://github.com/nodegit/nodegit/issues/920#issuecomment-195041465","issue_url":"https://api.github.com/repos/nodegit/nodegit/issues/920","id":195041465,"user":{"login":"johnhaley81","id":867780,"avatar_url":"https://avatars.githubusercontent.com/u/867780?v=3","gravatar_id":"","url":"https://api.github.com/users/johnhaley81","html_url":"https://github.com/johnhaley81","followers_url":"https://api.github.com/users/johnhaley81/followers","following_url":"https://api.github.com/users/johnhaley81/following{/other_user}","gists_url":"https://api.github.com/users/johnhaley81/gists{/gist_id}","starred_url":"https://api.github.com/users/johnhaley81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnhaley81/subscriptions","organizations_url":"https://api.github.com/users/johnhaley81/orgs","repos_url":"https://api.github.com/users/johnhaley81/repos","events_url":"https://api.github.com/users/johnhaley81/events{/privacy}","received_events_url":"https://api.github.com/users/johnhaley81/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T20:50:57Z","updated_at":"2016-03-10T20:50:57Z","body":"Here's exactly what I'm doing:\r\n\r\n```\r\nmkdir test\r\ncd test\r\nnpm install nodegit\r\nprintf \"const NodeGit = require('nodegit');\\n\\n NodeGit.Clone('https://github.com/nodegit/nodegit.git', 'no-progress').done(function (repo) { repo.free(); console.log('I am done'); });\" >> test.js\r\nnode test.js\r\n```\r\n\r\nAnd no hang :(\r\n"}}