Added custom exception handler for MIPS syscalls