def __exit__(self, type, err_value, traceback):
    if (err_value != None):
        print('ERROR: {0}\n'.format(str(err_value)))
        self.exit_code = 1
        self.exit_reason = str(err_value)
        try:
            self.builder.report()
        except e:
            pass
        return
    if (self.exit_code != 0):
        if (self.exit_reason != None):
            print(self.exit_reason)
        self.builder.report()
        exit(self.exit_code)
    else:
        print('')
def __exit__(self, type, err_value, traceback):
    if (err_value != None):
        print('ERROR: {0}\n'.format(str(err_value)))
        self.exit_code = 1
        self.exit_reason = str(err_value)
        try:
            self.builder.report()
        except e:
            pass
        return
    if (self.exit_code != 0):
        if (self.exit_reason != None):
            print(self.exit_reason)
        self.builder.report()
        exit(self.exit_code)
    else:
        print()