fix disconnect jmx sensors when a server is deleted

@aledsage does it look better?