Restart connection on error.