def get_sigint_handler(client):
    """ Return a SIGINT handler for the provided SlippiCommClient object """
    def handler(signum, stack):
        print("Caught SIGINT, stopping client")
        client.shutdown()
        exit(0)
    return handler