Fix for activities not marked finished if machine is idle