Adding in the code to print the stack trace from mwExceptions that are caught from Matlab.