fix broken close implementation
rm very broken test