Fixed concurrency issue with worker connections. Catching json exceptions