code: public static Connection close(Connection conn, Logger logExceptionTo, Object name)
  	{
  		if(conn == null)
  			return null;
  		try
  		{
  			conn.close();
  		}
  		catch(SQLException e)
  		{
  			(logExceptionTo==null ? logger : logExceptionTo).warn("SQLException closing " + (name == null ? conn.toString() : name) + " ignored.", e);
  		}
  		return null;
  	}
docs: Handle closing a connection.
  @param conn The conneciton to close.
  @param logExceptionTo The log to log any {@link SQLException}
  to. If this is null, the logger for the DbCloser class
  will be used.
  @param name Object to call {@link Object#toString()} on to
  name the object closed for any logged exception. If this is null
  conn.toString() will be used.
  @return null as a convinence to null out the closed object.