Adding disconnect logic to cast custom receiver

Change-Id: I2608fd3b942ba6dcfcd224d995d60e4604dc7d6b