Add disconnect method.
Refactor disconnecting.
Add disconnect to examples.
Add PyQt4 example application.