Currently the disconnect handling is very limited. This task should sort out exactly what should remain on the server is the device disconnects.