Do not leave dead popup when disabled or move out of document