changes in exception handling, device id can be error:%ErrorType%
more tests