- fix resource leackage (leaking descriptors mostly)