Don't assume the debug handler exists, so try to import it and add it
(but fail gracefully if it's not there).