more error handling in libxware/daemon.py