Fix exception when logging Qt warning without function.
Clean up faulthandler import