title: Close Nodejs mongodb idle connection
body: <p>I want to close any mongodb(2.6.8) connection in my nodejs app in which if a conn stays idle for more than 5 seconds.
  I can think of a solution that by checking the connection stat using after every 5 second and if it’s idle then closing the conn.</p>
  
  <p>Is there any better way to handle this case?</p>