<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def handle_error(err, halt=True):
 """Print errors message and optionally exit. Args: err (str):
 The error message to print. halt (bool, optional):
 Defaults to True. If True the script will exit. """

        print('{}{}{}'.format(c.Style.BRIGHT, c.Fore.RED, err))
        if halt:
            sys.exit(1)