machine: Improve log messages and stop process of a machine