Bug 883053 - Restore the original connection when connection fails.