Add exception handling and tracing examples