new endMonitoring action that signals to the main thread to stop monitoring"