I am not a fan of this. I think you just want to create a IOLoop instance in the main loop