Update trap.c

exception handling for testbin/faulter