removed kill (defer to __del__) and fixed library bug