fix #43; remove connections in client