Backport to groovy for rqt_bag close hangs rqt

fixes #31