Synchronize the handling of the completed executors

* Synchronize around the active executors data storage
* Add some debug logging