Check if event loop is closed and
        create a new event loop

def check_event_loop():
        """
        Check if event loop is closed and
        create a new event loop
        """
        loop = asyncio.get_event_loop()
        if loop.is_closed():
            asyncio.set_event_loop(asyncio.new_event_loop())