There were other plugins sending out `hidden` events that would close the dialog. I'd have to check again which ones they were but that's why I put it in here.