mojo/discovery: change Stop() to return error

  Change Stop() API to return error if the handle is not valid.
  This is also helpful to wait until stop() operation actually finishes.

Change-Id: I3293b7e8ad6b32085d61513178b72b0719971465
5 files changed