MachineStateModal: prepare IDE when it gets the Running state

ping @fatihacet