agent now informs master of state changes when going offline