Add option to disable exception logging