Handle exception during machine creation