[minor] Close open connections. Fixes #178