def abort_callback(sender):
    """
    Callback function to take action following Hashcat aborting
    """
    logger.info('Callback Triggered: Aborted')
    event_log = sender.hashcat_status_get_log()
    raise ValueError('Aborted: {}'.format(event_log))

    Callback function to take action following Hashcat aborting
    
crackq/run_hashcat.py