Add a debug message to the library cancellation path.