Closed connection in resources