Added disconnect method.