modify it to stop until the machine be shutdown