fixed concurrency issues in BATestScriptListener and BA-related bots