Tag exception handling best practices