Now properly throwing exceptions when calls in matlab fail (MatlabErrorException)

Signed-off-by: Richard Minerich <richard.minerich@gmail.com>