moved delete table in while loop, so its not deleted if VIO down