Improved handling ongoing tasks in instance list when no vm is present