added cbpy.close() (tested/works on OS X)