Check exception handling behavior