I would simply run the code in a new thread