Fix bug impeding receive events because thrift server wasn't started

Change-Id: I5034a5be3232014eea37fcd183a9c8ea6f8c48b7
Fix bug listening MediaServer events and cleanup

Change-Id: Icacede64a6f87d32e400b708d5f0b295ffc5c963