Made the code more robust to Z1 hardware failures. The code finds the
mote after it disconnects or resets.

Logging improved as well.