Close connection after proxying