From the "cleaning up" section of the docs:
Call the dispose() function that was returned by the subscribe() call.
So you have to save the return of onValue
:
var dispose = property.onValue(handler)
Then invoke it to remove the listener:
dispose();