closing connections after stop()