fix descriptor leakage.  fixes #10.