enables exception logging