Make gesture nets disposable

Detach all of the handlers when disposing of the network.