Added hack to stop get_grid_info crashing everything if connection closed.