Call join outside of ioservice thread (results to a deadlock)