private void doHeadlessMonitoringOff(HeadlessMonitoringOffMessage message) {
// The API is telling us to turn off monitoring.
DataInstance dataInstance = getDataInstance();
dataInstance.stopMonitoring();
HeadlessMonitoringOffAckMessage ackMessage = HeadlessMonitoringOffAckMessage.create();
sendToContentScript(port, ackMessage);
}