fixing exception handling

the athrow hack wasn't working.