ERT-656: Added reference to grid to protect against gc.