Use notify_exception instead of logging.exception