Explicitly logging exception during task execution.

Related to NXCM-4979, where apparently some runtime exception
(or error) was thrown by configuration save, both times when
configuration was about to be saved.