Preventing a dead lock when the requested instance from local store is not running. If it is not running we will now delete the lastSelectedInstance and switch back to index 0.