added logger error when connection exception occurs