Adding disconnect logic to cast custom receiver

Change-Id: I2608fd3b942ba6dcfcd224d995d60e4604dc7d6b
Merge pull request #5 from pengying/master

Adding disconnect logic to cast custom receiver