fixed issue with blocking io_service_.run()