Fix file descriptor leakage due to unclosed pipe. Bump version to 0.1.1.