Fixed possible deadlock in NXCSession.executeScript