Add a missing semicolon and set pendingCreation to false on machine creation failure