recreating Connection Factory when connection creation fails.