add logger to exception handler