libbuxton: Fix memory leak on client close

Also change tests to use direct close when tests used direct open