cleanup connections on close.
Merge pull request #89 from begriffs/release

cleanup connections on close.