Close connections to a server