Shutdown properly when olsrd thread interrupted.