close all file descriptors by termination
bug fixes and getting it working in combination with other clients