Handle asyncio.exceptions.CancelledError in custom connector

I know where is the problem. The client has a timeout set. Is it possible to return from webhook handler and run on_new_message in new thread.