Prints the error, and exits with the given code.

def error(self, message, code=1):
        """ Prints the error, and exits with the given code. """
        sys.stderr.write(message)
        sys.exit(code)