close connections after requests are made