fix: problem with incorrect termination of agent end
update: working condition of Paused Client Automation
added: tiny code improvements

fix: problem with incorrect termination of agent end update: working condition of Paused Client Automation added: tiny code improvements