The done() method closes all connections
to the Membase server. This is a crucial step as it forces the
subprocesses to complete, otherwise they will not end and your
Python application may freeze. If you fail to issue the method
before the end of your script, you will likely have to kill the
process using operating system tools.
The done() function takes no arguments,
returns nothing, and closes the given connection:
membase.done()