Fix doc generator for shorter header in README.
Properly close duplicate connection. Fix #38.