closing connections in reset