Device applications are responsible to catch and handle exceptions thrown by the client object API.
For message-based synchronization, you can catch exceptions for background thread message processing by creating a callback handler and implementing OnMessageException methods.