Small fix - close socket, if no mem