End the connection as part of timeout.