terminating connection after response