Added disconnect method (all tests pass).