Detection is different then telling you WHEN IT DISCONNECTS, which is probably more of what you would like. Provide a LOT more information, if you expect anyone to know what you want to do.