Handling exception in TC