Add 'disconnect' and 'shutdown'

Fixes #13