method close() waits when grid loaded