Fixed log bug, used destroyed tcp::iostream, caused double throw