fixing an error with the toggle switches in the extension. also added a try/except to the python daemon to catch all exceptions and log them.