adding while loop and timeout to AgentManager.join to catch Ctrl-C on py...

...thon < 3