fix an issue with the proxy monitor query

items did not get removed when the connection to the uplink server dies