use $exceptionHandler to log exception