Added Synchronized block in AtomicConnector