I don’t think this is possible directly. There is currently no listener.AppendConnectionCloseHandler() method. One work around is to check the IP address in the global AppendGlobalConnectionEstablishHandler and then add a connection specific close handler there.
Regards,
Marc