add interrupt/exception handler.