Close LDAP connections properly.

Implement the close() method in DatabaseWrapper so that the connection
to LDAP is actually unbound and closed properly as necessary.
Merge pull request #12 from mgorny/close-connections-properly

Close LDAP connections properly.