fixes #31. Close plugin now correctly calls cleanup functions
Merge pull request #112 from ablasdel/groovy-devel

Backport to groovy for rqt_bag close hangs rqt