close connections when exits
Merge remote-tracking branch 'contributor/master'