closed a connection