--- gnome-vfs-2.20.1/modules/sftp-method.c.BAD	2007-11-29 10:30:27.000000000 +0100
+++ gnome-vfs-2.20.1/modules/sftp-method.c	2007-11-29 10:33:57.000000000 +0100
@@ -1701,8 +1701,14 @@
 			*status = GNOME_VFS_ERROR_ACCESS_DENIED;
 		else if (strstr (str, "No route to host") != NULL)
 			*status = GNOME_VFS_ERROR_HOST_NOT_FOUND;
-		else if (strstr (str, "Host key verification failed") != NULL) {
+		else if (strstr (str, "Host key verification failed") != NULL)
 			*status = GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE;
+		else if (strstr (str, "Killed by signal") != NULL ||
+			 strstr (str, "Timeout, server not responding") != NULL) {
+			DEBUG (g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG,
+				      "%s: Subprocess closed the connection", G_GNUC_FUNCTION));
+			*status = GNOME_VFS_ERROR_EOF;
+			return FALSE;
 		}
 		break;
 	}
