title: Is a connection to MongoDB automatically closed on process.exit()?
body: <p>I am using the <code>mongodb</code> driver to connect to a MongoDB server from a Node.js application.</p>
  
  <p>Supposed my application crashes, or I call <code>process.exit()</code>, <em>without</em> closing the connection previously - does it stay open? Is it closed automatically? If so, who cares about that? Node.js? The TCP/IP stack? MongoDB? …? And: When does that happen?</p>
  
  <p>Does it make a difference if I hit <code>&lt;Ctrl&gt;+&lt;C&gt;</code>? </p>