Patch 1

Added a fix to notify listeners in case of local socket throwing exception. The symptom was a connection pool filled to the MAX with closed sockets after they had thrown an exception.