testHWcode, exit gracefully for virtual machines