Move io_service.run to proper position