Set exception handler optional