Properly dispose of sim and sim env