Add fix for the controller session stopping procedure.
Add fix for the controller session stopping procedure.

JoeriHermans/Intelligent-Automation-System,JoeriHermans/Intelligent-Automation-System,JoeriHermans/Intelligent-Automation-System,JoeriHermans/Intelligent-Automation-System