Updated failure support in communicator.js to continue to retry if autoReconnect is set to true.