Add finalize to adaptor base class.
Need to declare finalizer for it to be called correctly
Remove finializer from generated adaptor, since now in base adaptor class
Merge pull request #45 from hybridgroup/finalize-in-base-class

Add finalize to adaptor base class.