exceptionhandling for unplugged devices