locks for remote resource calls and main thread waits until all rule's are finished before restarting monitoring loop