Initialize exception handler in ConnectionFactory