Safely Learn from Mistakes in a Virtual Environment