close and release connections after sync
Merge pull request #86 from dimagi/close

close and release connections after sync