@staticmethod
def get_return_code(file):
    """ Read the return code from the file """
    try:
        line = open(file).readline().rstrip()
    except (EnvironmentError, TypeError):
        line = ''
    return line
