Fixed arduino daemon communication via sockets from thread to thread