Impletement machine state locking mechanism
Also fix machine probing after power actions