#16: added close connections.

added close connections.