Added destructors and override of OnDestroy in MainActivity sample. Fixes #90.