Extended exception handling