Refactor popup management and close callbacks
Merge pull request #280 from trainman419/close_bag_plugin

rqt_bag: Refactor popup management and close callbacks