@staticmethod
def _split_lsf_err(err, *pages):
    """Split out the lsf output and returns return code and error message"""
    for page in pages:
        if 'Resource usage summary' in page:
            if 'Successfully completed' in page:
                return 0, None
            elif 'Exited with exit code' in page:
                return int(page.split('exit code ')[-1].split('.')[0]), err
    if 'User defined signal 2' in err:
        err = 'Pipeline stopped by computer cluster for taking too long.'
    return None, err
