Refresh Machine state before Agent/Engine init

The Machine state needs to be rereshed so it can have a chance
to read the machine-id before it registers with event listeners.