Trap and log device errors

By default, kivy displayed errors and tracebacks in the console when processing certain devices on Linux. This PR traps and logs the errors, keeping console output neat and tidy.