title: BasicDataSource close() method does not close connections
body: <p>I have a short script opening datasource and then closing it. This script is using BasicDataSource.</p>
  
  <pre><code>BasicDataSource bds = new BasicDataSource();
  bds.setDriverClassName("com.mysql.jdbc.Driver");
  bds.setUrl("jdbc:mysql://10.1.1.186:3306/logs");
  bds.setUsername("root");
  bds.setPassword("");
  Connection connection = bds.getConnection();
  System.err.println(connection);
  bds.close();
  </code></pre>
  
  <p>After the close() command works, when I look in mysql using "show full processlist" command I can see that the connection is still listed in sleep status until the application is fully closed.</p>
  
  <p>What am i missing here ?</p>