Agent implements a state machine that is done running either when the results of a succesful computation are retrieved or when some sort of error happens. Manager should be notified when VM state machine transits to an end state, so it can properly shutdown the machine, clear up the artifacts and updates it's VM registry.