Index: src/protocol/peer_connection_leech.cc
===================================================================
--- src/protocol/peer_connection_leech.cc	(revision 611)
+++ src/protocol/peer_connection_leech.cc	(working copy)
@@ -370,6 +370,10 @@
   // Exception handlers:
 
   } catch (close_connection& e) {
+    std::stringstream s;
+    s << "Connection read fd(" << get_fd().get_fd() << ',' << m_down->get_state() << ',' << m_down->last_command() << ") \"" << e.what() << '"';
+    m_download->signal_network_log().emit("Close connection: " + s.str());
+
     m_download->connection_list()->erase(this);
 
   } catch (blocked_connection& e) {
@@ -515,6 +519,10 @@
     } while (true);
 
   } catch (close_connection& e) {
+    std::stringstream s;
+    s << "Connection write fd(" << get_fd().get_fd() << ',' << m_up->get_state() << ',' << m_up->last_command() << ") \"" << e.what() << '"';
+    m_download->signal_network_log().emit("Close connection: " + s.str());
+
     m_download->connection_list()->erase(this);
 
   } catch (blocked_connection& e) {

