disable keep-alive and wait for all connections to close