forcing dispose of repository on destructor

The only time we don't control object disposing is when it has a destructor, so here we are forcing repository disposing, see #1429