Close connection in Get method