Fixed SocketClose exception not registering properly